package ru.papergames.web.blines.battle.network.clientpackets;

/**
 * @author: atroshanin
 * Date: 22.05.2010
 * Time: 18:49:54
 */
public class AuthorizeWebServer extends WebServerClientPacket {

    private int webServerId;

    public AuthorizeWebServer(int webServerId) {
        this.webServerId = webServerId;
    }

    @Override
    protected void writePacketId() {
        writeC(AUTHORIZE_WEB_SERVER_PACKET_ID);
    }

    @Override
    protected void writePacketData() {
        writeD(webServerId);
    }

    @Override
    public String getType() {
        return "[c] AuthorizeWebServer[" + AUTHORIZE_WEB_SERVER_PACKET_ID + "]";
    }
}
